export const sametime= function (){
	
	let date = new Date()
	let year = date.getFullYear()
	let mounth = date.getMonth()+1
	let day =date.getDate()
	let str ='-'
	
	function toten(val){
		if(!val) return ''
		
		return val<10?("0"+val) :val
		
	}
	
	return year+str+toten(mounth)+str+toten(day)
}